package com.jd.jr.insights.dm.dim.domain;



import com.alibaba.fastjson.annotation.JSONField;
import com.jd.jr.insights.dm.dim.util.fastjson.tree.ITreeNode;

import java.util.Date;


public class DimTransform {
    private Integer id;
    /**
     * 源表名
     */
    private String old_table_nm;
    /**
     * 源字段名1
     */
    private String old_column_nm1;
    /**
     * 源枚举值1
     */
    private String old_key_id1;
    /**
     * 源枚举名1
     */
    private String old_key_nm1;
    /**
     * 新表名
     */
    private String new_table_nm;
    /**
     * 新字段名
     */
    private String new_column_nm;
    /**
     * 新枚举值
     */
    private String new_key_id;
    /**
     * 新枚举名称
     */
    private String new_key_nm;

    /*是否有效*/
    private Integer is_valid;
    /*创建时间*/
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date created_time;
    /*更新时间*/
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date updated_time;

    private Business biz;

    public DimTransform(Integer id, String old_table_nm, String old_column_nm1, String old_key_id1, String old_key_nm1, String new_table_nm, String new_column_nm, String new_key_id, String new_key_nm, Integer is_valid, Date created_time, Date updated_time, Business biz) {
        this.id = id;
        this.old_table_nm = old_table_nm;
        this.old_column_nm1 = old_column_nm1;
        this.old_key_id1 = old_key_id1;
        this.old_key_nm1 = old_key_nm1;
        this.new_table_nm = new_table_nm;
        this.new_column_nm = new_column_nm;
        this.new_key_id = new_key_id;
        this.new_key_nm = new_key_nm;
        this.is_valid = is_valid;
        this.created_time = created_time;
        this.updated_time = updated_time;
        this.biz=biz;
    }

    public DimTransform(Integer id, String old_table_nm, String old_column_nm1, String old_key_id1, String old_key_nm1, String new_table_nm, String new_column_nm, String new_key_id, String new_key_nm, Business biz) {
        this.id = id;
        this.old_table_nm = old_table_nm;
        this.old_column_nm1 = old_column_nm1;
        this.old_key_id1 = old_key_id1;
        this.old_key_nm1 = old_key_nm1;
        this.new_table_nm = new_table_nm;
        this.new_column_nm = new_column_nm;
        this.new_key_id = new_key_id;
        this.new_key_nm = new_key_nm;
        this.biz = biz;
    }

    public DimTransform() {

    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOld_table_nm() {
        return old_table_nm;
    }

    public void setOld_table_nm(String old_table_nm) {
        this.old_table_nm = old_table_nm;
    }

    public String getOld_column_nm1() {
        return old_column_nm1;
    }

    public void setOld_column_nm1(String old_column_nm1) {
        this.old_column_nm1 = old_column_nm1;
    }

    public String getOld_key_id1() {
        return old_key_id1;
    }

    public void setOld_key_id1(String old_key_id1) {
        this.old_key_id1 = old_key_id1;
    }

    public String getOld_key_nm1() {
        return old_key_nm1;
    }

    public void setOld_key_nm1(String old_key_nm1) {
        this.old_key_nm1 = old_key_nm1;
    }

    public String getNew_table_nm() {
        return new_table_nm;
    }

    public void setNew_table_nm(String new_table_nm) {
        this.new_table_nm = new_table_nm;
    }

    public String getNew_column_nm() {
        return new_column_nm;
    }

    public void setNew_column_nm(String new_column_nm) {
        this.new_column_nm = new_column_nm;
    }

    public String getNew_key_id() {
        return new_key_id;
    }

    public void setNew_key_id(String new_key_id) {
        this.new_key_id = new_key_id;
    }

    public String getNew_key_nm() {
        return new_key_nm;
    }

    public void setNew_key_nm(String new_key_nm) {
        this.new_key_nm = new_key_nm;
    }

    public Integer getIs_valid() {
        return is_valid;
    }

    public void setIs_valid(Integer is_valid) {
        this.is_valid = is_valid;
    }

    public Date getCreated_time() {
        return created_time;
    }

    public void setCreated_time(Date created_time) {
        this.created_time = created_time;
    }

    public Date getUpdated_time() {
        return updated_time;
    }

    public void setUpdated_time(Date updated_time) {
        this.updated_time = updated_time;
    }

    public Business getBiz() {
        return biz;
    }

    public void setBiz(Business biz) {
        this.biz = biz;
    }
}
